package com.lgy.resource;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.lgy.bean.Result;


@Path("hello")
public class HelloResource {
	@Path("say")
	@GET
    @Produces(MediaType.TEXT_PLAIN)
	public String say() {
		System.out.println("hello world");
		return "hello world";	
	}
	
	@Path("test")
	@GET
    @Produces(MediaType.APPLICATION_JSON)
	public Result<String> test() {
		Result<String> result = new Result<String>();
		result.success("aaaaaa");
		
		return result;
	}
}
